<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>登录</title>
	<meta http-equiv="pragma" content="no-cache">
	
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/form.css" />
	
  </head>
  
  <body>
    
  
     <form:form commandName="user" action="login.do" onsubmit="return validate(this)">
     <table>
       <tr>
          <td>
            <label for="account">账号：</label>
            <form:input path="account" cssClass="require"/>
            <form:errors path="account" />
          </td>
       </tr>
        <tr>
         <td>
           <label for="password">密码：</label>
           <form:password path="password" cssClass="require"/>
           <form:errors path="password" />
         </td>
       </tr>
       <tr>
          <td colspan="2">
               <input type="submit" value="登 录" />
          </td>
       </tr>
      <tr>
        <td colspan="2">
             <a href="registerCompany.do">注 册？</a>
        </td>
     </tr>
 </table>
 </form:form>
 
 
 <script type="text/javascript" src="<%=basePath %>js/formValidate.js"></script>"
 <script type="text/javascript">

  function validate(form){

     	return emptyValidate(form);

  };

</script>
 
  </body>
</html>
